﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using laba2.Entity;

namespace laba2.Configurations
{
    public class TaskConfiguration : EntityTypeConfiguration<Task>
    {
        public TaskConfiguration()
        {
            Property(t => t.CourseId).IsRequired();
            Property(t => t.Name).IsRequired().HasMaxLength(20);
            Property(t => t.PassingRating).IsRequired();
            Property(t => t.MaximumRating).IsRequired();
        }
    }
}
